# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=dissy
pkgver=10
pkgrel=4
pkgdesc='A graphical frontend to the objdump disassembler for compiler-generated code.'
groups=('blackarch' 'blackarch-disassembler' 'blackarch-reversing')
arch=('any')
url='http://dissy.googlecode.com/'
license=('GPL')
depends=('pygtk' 'pywebkitgtk')
source=("https://dissy.googlecode.com/files/$pkgname-$pkgver.tar.gz")
sha512sums=('3cf5db752fc0e35ed22cd0abc5d6c4ec97838516')

build() {
  cd "$pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$pkgname-$pkgver"

  install -dm 755 "$pkgdir/usr/share/dissy"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build

  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README ChangeLog TODO \
    UPGRADE
  install -Dm 644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
  install -Dm 644 gfx/icon.svg "$pkgdir/usr/share/$pkgname/pixmaps/dissy.svg"
}

